/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package sport;

import java.rmi.RemoteException;
import java.sql.SQLException;
import java.util.List;
import javax.ejb.CreateException;
import javax.ejb.EJBObject;
import javax.ejb.FinderException;
import javax.ejb.RemoveException;
import javax.naming.NamingException;
import player.Player;
import player.PlayerRemote;

/**
 *
 * @author denaas
 */
public interface PlayerManagerRemote extends EJBObject {
    public void add(Player player) throws SQLException, NamingException, CreateException, RemoteException;
    public void edit(Player player) throws SQLException, NamingException, FinderException, RemoteException;
    public void remove(Integer playerId, Integer sportId) throws SQLException, NamingException, FinderException, RemoteException, RemoveException;
    public List selectMany(Integer teamId, Integer sportId) throws SQLException, SQLNotFoundException, NamingException, RemoteException, FinderException;
    public Player selectOne(Integer playerId, Integer sportId) throws SQLException, SQLNotFoundException, NamingException, RemoteException, FinderException;
    public List selectByQuery(Player plfrom, Player plto, Integer sportId) throws SQLException, SQLNotFoundException, NamingException, RemoteException;
}
